From: Felix Fietkau Date: Sat, 31 Jan 2009 03:23:21 +0000 (+0000) Subject: chillispot: fix buffer overflow (thx to Sebastian Gottschall) X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=409b60fdc217371b7b06ff2839cc1183fffa068f;p=openwrt%2Fsvn-archive%2Fpackages.git chillispot: fix buffer overflow (thx to Sebastian Gottschall) SVN-Revision: 14295 --- diff --git a/net/chillispot/patches/120-fix_bufferoverflow.patch b/net/chillispot/patches/120-fix_bufferoverflow.patch new file mode 100644 index 000000000..abc293b2b --- /dev/null +++ b/net/chillispot/patches/120-fix_bufferoverflow.patch @@ -0,0 +1,11 @@ +--- a/src/radius.c ++++ b/src/radius.c +@@ -1002,7 +1002,7 @@ int radius_pwencode(struct radius_t *thi + } + + /* Copy first 128 octets of src into dst */ +- if (srclen <= 128) ++ if (srclen > 128) + memcpy(dst, src, 128); + else + memcpy(dst, src, srclen);